<?php

namespace Core\Service\Authenticate;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class AdminIdentityManagerFactory implements FactoryInterface
{

    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $authService = $serviceLocator->get('AdminAuthService');
        $identityManager = new IdentityManager($authService);
        return $identityManager;
    }
}